package com.open.exam.mapper;

import com.open.exam.databasemodel.ExamineeAnswerDetail;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

/**
 * @author 奶茶
 * Created by on 2017/12/13.
 */
@Mapper
public interface ExamineeAnswerDetailMapper {

    /**
     * 获取考生当前全部作答
     * @param examineeId
     * @param examPaperInfoId
     * @return
     */
    @Select("SELECT * FROM ExamineeAnswerDetail WHERE ExamineeId = #{examineeId} AND LOWER(ExamPaperID) = #{examPaperID}")
    List<Map<String,Object>> findExamineeAnswerDetails(@Param(value = "examineeId") String examineeId, @Param(value = "examPaperInfoId") String examPaperInfoId);

}
